package com.sharedlease.Feign;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sharedlease.entity.Merchant;
import com.sharedlease.entity.R;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Repository
public interface MerchantClient extends BaseMapper<Merchant> {
    public Merchant getMerchantById(@PathVariable Long id);
    public List<Merchant> getMerchantList();
    public R saveMerchant(@RequestBody Merchant merchant);
    public R deleteMerchantById(@RequestBody Merchant merchant);
    public R updateMerchantById(@RequestBody Merchant merchant);
}
